Learn R Programming

spatialsegregation (version 2.40)

helper functions: Functions for the aid of segregation measures

Description

Small functions included in package spatialsegregation, used for manipulation of forest datasets which have dbh-values (pp with an element $dbh).

Usage

clean.up.data(pp, dbh = 10, atleast = 10) freqs(pp) minusID(pp, minusR, dbh, atleast=0) shake(pp, a = 0.001)

Arguments

pp
Multitype point pattern (see package 'spatstat')
atleast
Include specii with abundance atleast atleast.
dbh
Include only those points with dbh atleast dbh.
minusR
Range from the border withing which to exluce points (used for correction of estimates).
a
Size of displacement: x+Unif(-a,a), y+Unif(-a,a).

Details

Small functions to manipulate multitype point patterns.

clean.up.data: Returns a subsample fullfilling the given constrains.

freqs: Returns the abundance vector.

minusID: Returns a 0-1-vector indicating inclusion in a simple minus-correction.

shake: Shakes the pattern, i.e. adds a random displacement shift to each point.